2020-2021 Sunseeker Telemetry and Lighting System
wdt_a_ex1_intervalSMCLK.c File Reference
#include "driverlib.h"
#include "Board.h"

Go to the source code of this file.

Functions

void main (void)
 
void WDT_A_ISR (void)
 

Function Documentation

◆ main()

void main ( void  )

WDT - Toggle LED1, Interval Overflow ISR, DCO SMCLK

Toggle LED1 using software timed by the WDT ISR. Toggle rate is approx. 30ms = {(default DCO 1.045MHz) / 32768} based on default DCO = SMCLK clock source used in this example for the WDT. ACLK = n/a, MCLK = SMCLK = default DCO ~1.048MHz

     MSP430FR2xx_4xx Board
       -----------------
   /|\|                 |
    | |                 |
    --|RST              |
      |                 |-->LED1
      |                 |

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • WDT peripheral
  • GPIO Port peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • WDT_A_VECTOR

Definition at line 63 of file wdt_a_ex1_intervalSMCLK.c.

References __no_operation().

◆ WDT_A_ISR()

void WDT_A_ISR ( void  )

Definition at line 98 of file wdt_a_ex1_intervalSMCLK.c.